package com.haha.sonar.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/get/hello")
    public String getHelloWorld(String name) {
        return name + " hello!";
    }

    @RequestMapping("/get/hello1")
    public String getHelloWorld1(String name) {
        String[] arrays = new String[2];
        String string1 = arrays[0];
        String String2 = arrays[1];
        System.out.println(string1 + String2);



        return name + " hello!";
    }

    @RequestMapping("/get/hello2")
    public String getHelloWorld2(String name) {
        return name + " hello!";
    }
}
